<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean"
	prefix="bean"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html"
	prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>

<html>
	<head>
		<title>JSP for SearchForm form</title>
	</head>
	<body>
	请输入你要查询的姓名！
		<html:form action="/search">
			NAME : <html:text property="NAME" />
			<html:errors property="NAME" />
			<br />
			<html:submit value="查询"/>
			<html:cancel value="取消"/>
		</html:form>
		<table width="80%" border="1" cellspacing="0" cellpadding="0"
			align="center" bordercolor="#FFFFFF">
			<tr align="center" bgcolor="#EFF1F3">
				<td height="30" width="20%">
					name
				</td>
				<td height="30" width="20%">
					sax
				</td>
				<td height="30" width="20%">
					age
				</td>
				<td height="30" width="10%">
					sal
				</td>
			</tr>
			<logic:present name="empbean" scope="request">
				<td>
					<bean:write name="empbean" property="name" />
				<td>
					<bean:write name="empbean" property="sax" />
				<td>
					<bean:write name="empbean" property="age" />
				<td>
					<bean:write name="empbean" property="sal" />
				<td>
			</logic:present>
		</table>
	</body>
</html>

